-- GENERATED SPELL FOR [Stitched Giant] --


function spell0_16025(pUnit, Event) --@Knockback,Self--
pUnit:FullCastSpellOnTarget(28405,pUnit)
pUnit:RegisterEvent('Sorts_16025', 599, 1)
end

function spell1_16025(pUnit, Event) --@Unstoppable Enrage,Self--
pUnit:FullCastSpellOnTarget(54356,pUnit)
pUnit:RegisterEvent('Sorts_16025', 575, 1)
end

function Sorts_16025(pUnit, Event)
local choix_sorts_16025 = math.random(0, 1)
if choix_sorts_16025 == 0 then
pUnit:RegisterEvent('spell0_16025', 1, 1)
end
if choix_sorts_16025 == 1 then
pUnit:RegisterEvent('spell1_16025', 1, 1)
end
end

function mob16025_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16025', math.random(1500, 3000), 1)
end

function mob16025_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16025_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16025_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16025, 1, 'mob16025_Action')
RegisterUnitEvent(16025, 2, 'mob16025_Leave')
RegisterUnitEvent(16025, 3, 'mob16025_Kill')
RegisterUnitEvent(16025, 4, 'mob16025_Die')
